package com.atguigu.a_operator;

public class Demo8 {
    public static void main(String[] args) {
        //比较2个数的大小
        int a = 100;
        double b = 20;

        //三元运算符
        double max =  a > b ? a : b;

        System.out.println("max = " + max);
    }
}
